@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css");

/* 动画 */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.slide-in-up {
    animation: slideInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* 容器和背景 */
.profile-container {
    padding: 40px 20px;
    background: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* 设置按钮 */
.settings-header {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.settings-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(123, 104, 238, 0.2);
    border-radius: 25px;
    color: #7B68EE;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.settings-btn:hover {
    background: rgba(123, 104, 238, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(123, 104, 238, 0.2);
}

.settings-btn i {
    font-size: 16px;
}

.settings-text {
    font-size: 14px;
}

.mobile .settings-btn {
    padding: 8px 12px;
    font-size: 12px;
}

.mobile .settings-btn i {
    font-size: 14px;
}

.mobile .settings-text {
    font-size: 12px;
}
.profile-container.mobile {
    padding: 20px 15px;
}
.background-overlay {
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, rgba(123, 104, 238, 0.1), rgba(123, 104, 238, 0));
    border-radius: 50%;
    z-index: 0;
}

/* 卡片 */
.profile-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(123, 104, 238, 0.15);
    padding: 25px;
    position: relative;
    z-index: 1;
    max-width: 500px;
    margin: 0 auto;
}
.mobile .profile-card {
    padding: 20px;
}

/* 卡片头部 */
.card-header {
    display: flex;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.avatar-wrapper {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin-right: 20px;
}
.avatar-wrapper:hover {
    transform: scale(1.1);
}
.avatar-canvas {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.mobile .avatar-canvas {
    width: 60px;
    height: 60px;
}
.user-identity {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.username {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}
.mobile .username {
    font-size: 20px;
}
.role-tag {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 15px;
    color: #fff;
    background-color: #28a745;
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 5px;
}
.role-tag.admin {
    background: linear-gradient(45deg, #7B68EE, #9370DB);
}

/* 卡片主体 */
.card-body {
    padding: 25px 5px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.info-item {
    display: flex;
    align-items: center;
    font-size: 16px;
}
.mobile .info-item {
    font-size: 15px;
}
.info-icon {
    color: #7B68EE;
    width: 25px;
    text-align: center;
    margin-right: 15px;
    font-size: 18px;
}
.label {
    color: #666;
    width: 80px;
}
.value {
    color: #333;
    font-weight: 500;
}

/* 卡片脚部 */
.card-footer {
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 10px;
}
.footer-btn {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s ease;
}

.posts-btn {
    background: linear-gradient(45deg, #2196F3, #21CBF3);
}

.points-history-btn {
    background: linear-gradient(45deg, #9C27B0, #673AB7);
}
.points-ranking-btn {
    background: linear-gradient(45deg, #FF9800, #FF5722);
}

.html-games-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}
.html-games-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s ease-in-out;
}
.html-games-btn:hover::before {
    left: 100%;
}
.html-games-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}
.footer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

